﻿var PhoneType =
        { MPHONE_TYPE_ALL: -1,
            MPHONE_TYPE_HOME: 0,
            MPHONE_TYPE_WORK: 1,
            MPHONE_TYPE_MOBILE: 2,
            MPHONE_TYPE_CUSTOM: 3
        };

var ocs = null;


function initActiveXObject() {
    ocs = new ActiveXObject("OCS.Messager");
}


try {
    function IM(email_address) {
        ocs.IM(email_address);
}
}
catch (e) { 
}


try {
function Voice(email_address) {
    ocs.StartVoice(email_address);
}
}
catch (e) {
}


try {
function Phone(email_address) {
    ocs.Phone(email_address, 1);
}
}
catch (e) {
}


try {
function SendMail(email_address) {

    ocs.SendMail(email_address);
}
}
catch (e) {
}